<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/18
 * Time: 11:51
 */

namespace app\admin\model;


class GoodsModel extends BaseModel
{
    public function spec()
    {
        return $this->hasMany('GoodsSpec','model_id','id');
    }
}